package com.derive.education_service.web.admin.service;

import com.derive.education_service.common.global.ResponseMessage;
import org.springframework.stereotype.Component;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.awt.image.BufferedImage;

/**
 * 管理员登录 校验
 */
@Component
public interface AdminLoginService {
    // 管理员登录
    ResponseMessage adminLogin(HttpServletRequest request,HttpServletResponse response, String account, String password, String code);

    // 获取验证码
    void getVerifyCode(HttpServletRequest request, HttpServletResponse response);

    // 退出登录，注销登录
    ResponseMessage adminLogout(HttpServletRequest request);

    // 检查用户是否存在
    ResponseMessage checkAdmin(String account);
}
